<template>
  <van-swipe class="my-swipe" :autoplay="1500" indicator-color="white">
    <van-swipe-item v-for="item in banner" :key="item.id"><img :src="item.image_url" alt="" /></van-swipe-item>
  </van-swipe>
</template>

<script>
import Vue from "vue";
import { Swipe, SwipeItem } from "vant";

Vue.use(Swipe);
Vue.use(SwipeItem);
export default {
  name: "",
  props: { banner: { type: Array, default: [] } },
  data() {
    return {};
  },
};
</script>
<style lang="less" scoped>
.van-swipe-item {
  img {
    width: 100%;
    height: 100%;
  }
}
</style>